<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>酒店点评</title>

    <meta http-equiv="keywords" content="酒店,酒店预订"/>
    <meta http-equiv="description" content="九天是主要面向大学生提供酒店预订服务，价格低廉，品质优越"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link href="http://www.ijiutian.com/css/my.css" rel="stylesheet"/>
<link href="http://www.ijiutian.com/css/jquery-ui-1.8.13.custom.css" rel="stylesheet"/>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-ui-i18n.min.js"></script>
<script>
function addComment(){
	$.post('http://www.ijiutian.com/hotel/addcomment.do?time='+new Date().getTime(), {
		commenttype: $(":radio").val(),
		comment: $("#comment").val(),
	}, function(data) {if(data=='success') alert('增加成功');else alert('增加失败');}, 'text');
}
</script>    
    
  </head>
  <body>
  <jsp:include page="/hotel/bar.jsp" />
  <h1>酒店点评</h1>
  <form action="/hotel/comment.do">
  <input type="radio" name="commenttype" value="1"/>推荐
  <input type="radio" name="commenttype" value="2"/>不推荐
  <textarea id="comment" name="comment" cols="60"></textarea>
  <input type="button" value="提交" onclick="addComment()"/>
  </form>
  </body>
</html>